package TopN;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;

public class demo {
    public static void main(String[] args) {
        TreeMap<FlowBean,Integer> treeMap=new TreeMap<>();

        List<FlowBean> names=new ArrayList<>();
        names.add(new FlowBean(90,100));
        names.add(new FlowBean(42,40));

        for (FlowBean name:names){
            treeMap.put(name,90);
        }
        System.out.println(treeMap);
    }
}
